<html>
<head>
<%@ include file="../includes/comun.jsp"%>
<style>
	.th0101 {width: 10%;} .th0102 {width: 10%;} .th0103 {width: 10%;} .th0104 {width: 10%;} .th0105 {width: 10%;} .th0106 {width: 20%;} .th0107 {width: 10%;} .th0108 {width: 10%;} .th0109 {width: 10%;}
	.td0101 {width: 10%; text-align: right;}
	.td0102 {width: 10%; text-align: right;}
	.td0103 {width: 10%; text-align: right;}
	.td0104 {width: 10%; text-align: right;}
	.td0105 {width: 10%; text-align: right;}
	.td0106 {width: 20%; text-align: right;}
	.td0107 {width: 10%; text-align: right;}
	.td0108 {width: 10%; text-align: right;}
	.td0109 {width: 10%; text-align: right;}
	.td02TipoDeno {text-align: left; font-weight: bold;}
	.td0201 {text-align: right; width: 50%}
	.td0202 {text-align: right; width: 50%}
	.tblTraspaso {width: 80%;}
</style>
<script type="text/javascript">
var ESTADO_CAJA_APERTURADA_ID = "${ESTADO_CAJA_APERTURADA_ID}";
var NOMBRE_TIPO_CAJA = "${tipo}";
</script>
<script language="javascript" src="<%=request.getContextPath()%>/js/operatoria/ConfirmarCaja.js"></script>
</head>
<body>
<c:choose><c:when test="${cache.sistemaActivado}"> 
<center>
<table class="tblTitulo"><tr><td>Confirmaci&oacute;n del Traspaso de ${tipo}</td></tr></table>

<table style="width: 100%">
<tr><td class="cuadrotitle">Lista de Traspasos de Salida</td></tr>
<tr><td>
	<table class="tblListado">
		<thead>
		<tr><th class="th0101">Opci&oacute;n</th>
			<th class="th0102">Registro</th>
			<th class="th0103">Nro. Terminal</th>
			<th class="th0104">Apellido Paterno</th>
			<th class="th0105">Apellido Materno</th>
			<th class="th0106">Nombres</th>
			<th class="th0107">Oficina</th>
			<th class="th0108">Divisa</th>
			<th class="th0109">Importe</th></tr>
		</thead>
		<tbody id="tbdListado">
		<c:choose>
		<c:when test="${not empty confirmaciones}">
		<c:forEach items="${confirmaciones}" var="confirmacion">
		<tr id="conf${confirmacion.operacionId}">
			<td class="td0101"><input type="button" value="Confirmar" onclick="confirmar(${confirmacion.operacionId})"></td>
			<td class="td0102">${confirmacion.registroId}</td>
			<td class="td0103">${confirmacion.terminalId}</td>
			<td class="td0104">${confirmacion.apellidoPaterno}</td>
			<td class="td0105">${confirmacion.apellidoMaterno}</td>
			<td class="td0106">${confirmacion.nombres}</td>
			<td class="td0107">${confirmacion.oficina}</td>
			<td class="td0108">${confirmacion.divisa}</td>
			<td class="td0109">${confirmacion.importe}</td></tr>
		</c:forEach>
		</c:when>
		<c:otherwise>
		<tr><td colspan="9"><center>No se encontraron datos</center></td></tr>
		</c:otherwise>
		</c:choose>
		</tbody>
	</table>
	</td></tr>
<tr><td>
	
	</td></tr>
</table>
</center>
<div id="dialogTraspaso" style="display: none;">
<center>
<table class="tblListado tblTraspaso">
<thead><tr><th>Denominaci&oacute;n</th><th>Monto</th></tr></thead>
<tbody id="tbdTraspaso"></tbody>
</table>
</center>
</div>
</c:when><c:otherwise><jsp:include page="../includes/mensajeInactivo.jsp"></jsp:include></c:otherwise></c:choose> 
</body>
</html>